<?php
echo '<pre>';
$arr = array(

	'a'=>array(

		'name'=>'age'

		),
	'b'=>'sina'


	);

/**
 * [把键名改成大写]
 * @param [type] $dirs [description]
 */
function Str($dirs)
{
	$tmp=array();

	foreach ($dirs as $key => $value) {
		$tmp[strtoupper($key)]=is_array($value)?Str($value):$value;
		print_r($tmp);
	}
	return $tmp;
}

$d = Str($arr);






?>